Previous Book Contents Book Index Next

Inside Macintosh: AppleScript Finder Guide /
Chapter 2 - Finder Objects / Object Class Definitions


Desktop-Object

An object of class Desktop-Object is the desktop of a computer. The Desktop property of the Finder application is a reference to an object of this class.

PROPERTIES
A desktop-object has some (but not all) of the properties defined for object class Container on page 42: Container Window, Entire Contents, Previous List View, Selection, and View.

A desktop-object also has some of the properties defined for object class Item on page 72: Comment, Content Space, Creation Date, Disk, Kind, Modification Date, Name, Physical Size, Selected, Size, and Window.

Unlike other containers, a desktop-object also has these properties:

startup disk
A reference to the startup disk from which the Finder application was launched.
trash
A reference to the Trash folder.
ELEMENT CLASSES
Objects of these classes can be identified at the top level of the desktop-object by name or by number. Page numbers indicate the location of corresponding definitions in this chapter.

Accessory Suitcase (page 27)
Alias File (page 28)
Application File (page 38)
Container (page 42)
Control Panel (page 51)
Desk Accessory File (page 54)
Document File (page 59)
File (page 60)
Folder (page 62)
Font File (page 64)
Font Suitcase (page 65)
Item (page 72)
Sharable Container (page 78)
Sound File (page 86)
Suitcase (page 88)
COMMANDS HANDLED
Clean Up, Count, Data Size, Exists, Get, Print, Select, Sort, Update

DEFAULT VALUE CLASS RETURNED
Reference.

EXAMPLE
To refer to a desktop-object, you must use the Desktop property of the Finder application:

tell application "Finder"   clean up desktop
end tell
For more information about the Desktop property, see "Properties and Elements of the Finder," which begins on page 20.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
13 JUL 1996